package CharacterTraits 
{
	public class PersonalityLevel 
	{
		public static const NO_BOTTOM:int = -1;
		public static const VERY_LOW:int = 0;
		public static const LOW:int = 1;
		public static const MEDIUM:int = 2;
		public static const HIGH:int = 3;
		public static const VERY_HIGH:int = 4;
		public static const NO_TOP:int = 5;
		
		public static function GetLevel(value:Number):uint
		{
			if (value <= 0.1)
			{
				return VERY_LOW;
			}
			else if (value <= .3)
			{
				return LOW;
			}
			else if (value >= .9)
			{
				return VERY_HIGH;
			}
			else if (value >= .7)
			{
				return HIGH;
			}
			else
			{
				return MEDIUM;
			}
		}
	}

}